<title>Registration</title>
<form name="registerForm" action="./member_save.php" method="post">
<table align="center">
    <tr><td style="height:80px;"></td></tr>

    <tr>
        <td align="center">e-mail 
        <font color="#FF0000">*</font></td>
        
        <td style="height:50px;">
        <input type="text" name="id" style="width:300px;"></td>
    </tr>
    <tr>
        <td align="center">confirm e-mail 
        <font color="#FF0000">*</font></td>
        
        <td style="height:50px;">
        <input type="text" name="id2" style="width:300px;"></td>
    </tr>
    <tr>
        <td align="center">address</td>
        
        <td style="height:50px;">
        <input type="text" name="addr" style="width:300px;"></td>
    </tr>
    <tr>
        <td align="center">nickname 
        <font color="#FF0000">*</font></td>
        
        <td style="height:50px;">
        <input type="text" name="Nname" style="width:300px;"></td>
    </tr>
    <tr>
        <td align="center">password 
        <font color="#FF0000">*</font></td>
        
        <td style="height:50px;">
        <input type="password" name="pass" style="width:300px;"></td>
    </tr>
    <tr>
        <td align="center">confirm password 
        <font color="#FF0000">*</font></td>
        
        <td style="height:50px;">
        <input type="password" name="pass2" style="width:300px;"></td>
    </tr>
    <tr>
        <td align="center">Picture
        <font color="#FF0000">*</font></td>
        
        <td style="height:50px;">
        <input type="text" name="pic" style="width:300px;"></td>
    </tr>
    <tr><td align="center"><font color="#FF0000">*</font>required</td>
 		  <td align="center"><input type="button" value=" submit " onClick="register();"></td>    
    </tr>
   
</table>
</form>
<script>
function register()
{
    var rF = document.registerForm;

    if(rF.id.value == ""){
        alert("Please, Enter your e-mail.");
        return false;
    }

    if(rF.id.value != rF.id2.value){
        alert("e-mails do not match.");
        return false;
    }

    if(rF.Nname.value == ""){
        alert("Please, Enter your nickname.");
        return false;
    }

    if(rF.pass.value == ""){
        alert("Please, Enter your password.");
        return false;
    }

    if(rF.pass.value != rF.pass2.value){
        alert("Passwords do not match.");
        return false;
    }

    rF.submit();

}
</script>